package jee.boot.entity.file;

import jee.boot.common.annotation.Table;
import jee.boot.common.annotation.Transient;
import jee.boot.common.basic.DataEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 附件Entity
 *
 * @author zhilei.wang
 * @version 2018-01-25
 * @modify mashikai 2021-02-25 增加OSS相关上传下载
 */
@Table(name="st_attachment")
public class Attachment extends DataEntity<Attachment> {

    // 构造方法
    public Attachment() {}

    // 构造方法
    public Attachment(String id) {
        this.id = id;
    }

    /**
     * 文件id
     */
    private String fileId;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 文件大小(k)
     */
    private BigDecimal fileSize;

    /**
     * 文件url
     */
    private String fileUrl;

    /**
     * 保存路径
     */
    private String savePath;

    /**
     * contenttype
     */
    private String contentType;


    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public BigDecimal getFileSize() {
        return fileSize;
    }

    public void setFileSize(BigDecimal fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }


}